﻿package com.xkrys.display 
{
	import com.xkrys.event.TrackEvent;
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.ui.Mouse;
//	import flash.ui.MouseCursor;


	/**
	 * ...
	 * @author Christopher Courtois
	 */
	public class ScrollThumb extends MovieClip
	{
		
		public function ScrollThumb() 
		{	
			super();
			buttonMode = true;
		//	addEventListener(MouseEvent.ROLL_OVER, _onMouseOver, false, 0 , true);
		//	addEventListener(MouseEvent.ROLL_OUT, _onMouseOut, false, 0 , true);
		//	addEventListener(MouseEvent.MOUSE_DOWN, _onMouseDown, false, 0 , true);
			
		}
		
		/*
		private function _onMouseOver(e:MouseEvent = null):void {
			Mouse.cursor = MouseCursor.HAND;
		}
		
		private function _onMouseOut(e:MouseEvent):void {
			Mouse.cursor = MouseCursor.AUTO;
		}
		
		private function _onMouseDown(e:MouseEvent):void {
			removeEventListener(MouseEvent.ROLL_OUT, _onMouseOut);
			stage.addEventListener(MouseEvent.MOUSE_UP, _onMouseUp, false, 0 , true);
		}
		
		private function _onMouseUp(e:MouseEvent):void {
			stage.removeEventListener(MouseEvent.MOUSE_UP, _onMouseUp);
			addEventListener(MouseEvent.ROLL_OUT, _onMouseOut, false, 0 , true);
			if(!hitTestPoint(stage.mouseX,stage.mouseY)) Mouse.cursor = MouseCursor.AUTO;
		}
		*/
	}
	
}